<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductManager.ascx.cs" Inherits="UserControl_ProductManager" %>
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0" OnActiveViewChanged="MultiView1_ActiveViewChanged">
    <asp:View ID="View1" runat="server">
<table style="width: 470px; height: 442px">
    <tr>
        <td align="center" colspan="2" style="height: 59px">
            Product Manage<br />
        </td>
    </tr>
    <tr>
        <td style="width: 198px">
            productID</td>
        <td style="width: 253px">
            <asp:TextBox ID="txtID" runat="server" Width="150px" ReadOnly="True"></asp:TextBox></td>
    </tr>
    <tr>
        <td style="width: 198px">
            producName</td>
        <td style="width: 253px">
            <asp:TextBox ID="txtName" runat="server" Width="148px"></asp:TextBox></td>
    </tr>
    <tr>
        <td style="width: 198px; height: 26px">
            produc Security Deposit</td>
        <td style="width: 253px; height: 26px">
            <asp:TextBox ID="txtDeposit" runat="server" Width="148px"></asp:TextBox>
            <asp:Label ID="lbdepositInvalid" runat="server" Font-Size="Small" ForeColor="Red"
                Text="invalid input" Visible="False"></asp:Label></td>

    </tr>
    <tr>
        <td style="width: 198px; height: 86px">
            produc Description</td>
        <td style="width: 253px; height: 86px">
            <asp:TextBox ID="txtDescription" runat="server" Height="93px" TextMode="MultiLine"
                Width="240px"></asp:TextBox></td>

    </tr>
    <tr>
        <td style="width: 198px; height: 184px;">
            Product Equipment</td>
        <td style="width: 253px; height: 184px;">
            <asp:GridView ID="gv_equipment" runat="server" AutoGenerateColumns="False" Font-Size="Small" OnRowDeleting="gv_equipment_RowDeleting" Width="241px">
                <Columns>
                    <asp:BoundField DataField="EquipmentID" HeaderText="ID" />
                    <asp:BoundField DataField="EquipmentName" HeaderText="Name" />
                    <asp:TemplateField HeaderText="Amount">
                        <ItemTemplate>
                            <asp:TextBox ID="txtAmuont" runat="server" Font-Size="X-Small" Text='<%# Eval("Amount") %>'
                                Width="41px"></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Delete">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="delete">Delete</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <asp:Button ID="btAddEquipment" runat="server" OnClick="btAddEquipment_Click" Text="add Equipment" Font-Size="X-Small" CssClass="cdminiform" /></td>
    </tr>
    <tr>
        <td style="width: 198px; height: 21px;">
        </td>
        <td style="width: 253px; height: 21px;">
        </td>
    </tr>
    <tr>
        <td style="width: 198px">
            <br />
            <asp:LinkButton ID="LinkButton3" runat="server" OnClick="LinkButton3_Click">Addnew Product</asp:LinkButton></td>
        <td style="width: 253px">
            <asp:Button ID="btAdd" runat="server" Text="Add" OnClick="btAdd_Click" Width="56px" CssClass="cdminiform" />
            &nbsp;
            <asp:Button ID="btDelete" runat="server" Text="Delete" Visible="False" OnClick="btDelete_Click" />
            <asp:Button ID="btReset" runat="server" OnClick="btReset_Click" Text="Reset" /><br />
            <asp:Label ID="lbmess" runat="server" Font-Size="Small" ForeColor="#00C000" Width="95px"></asp:Label></td>
    </tr>
</table>
    </asp:View>
    <asp:View ID="View2" runat="server">
    <center>
        <span style="color: blue">Chose Equipment you want to add</span></center>
        <center>
            &nbsp;</center>
        <center>
        <asp:GridView ID="gvEquipmentList" runat="server" AutoGenerateColumns="False" Width="356px" Font-Size="Small" Height="140px" OnRowDeleting="gvEquipmentList_RowDeleting">
            <Columns>
                <asp:BoundField DataField="EquipmentID" HeaderText="Equipment ID" />
                <asp:BoundField DataField="EquipmentName" HeaderText="Equipment Name" />
                <asp:TemplateField HeaderText="add">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton2" runat="server" CommandName="delete">Add</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:Button ID="btA" runat="server" Text="Back" Width="72px" Font-Size="X-Small" OnClick="btA_Click" />
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</center>
        <center>
            &nbsp;</center>
        <center>
            &nbsp;</center>
        <center>
            &nbsp;</center>
        <center>
            &nbsp;</center>
        <center>
            &nbsp;</center>
        <center>
            &nbsp;</center>
        <center>
            &nbsp;</center>
        <center>
            &nbsp;</center>
        <center>
            &nbsp;</center>
        <center>
            &nbsp;</center>
        </asp:View>
</asp:MultiView>
